This forum is closed to new posts and
responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:
RE: Shift-click equivalent for selecting documents? ~Umberto Nongeroson 3.Jan.04 01:28 AM a Web browser Notes Client 6.5Windows XP
If there is some rule that you could use to determine which documents you're interested in, you could use a full-text query to search for them. Then either use Ctrl+A, or select View / Show and uncheck Search Results Only to return to the full view with the matching documents checked.
Or, you could write a formula agent to select the documents. When you edit a formula agent, you may notice there's a field at the bottom right corner of the screen where you can select to modify documents (the default), select documents, or create documents. Choose "select documents", and any documents that match your selection criteria will be ticked in the view when you run the agent. FIELD statements in the agent will not be executed.
If the criteria you use to select the documents vary, then you can use the @Eval function in the SELECT statement of your agent to run a formula that you create in your action button and store in the environment. Something like this:
View Action button:
promptdef := @Environment("MassSelect");
@If(promptdef = ""; promptdef := "EventType = \"Unusual\" : \"Outrageous\""; "");
t := @Prompt([OkCancelEdit]; "Mass Select"; "Please enter the selection criteria as a formula expression:"; promptdef);
@If(t = ""; @Return(""); "");
ENVIRONMENT MassSelect := t;
@Command([ToolsRunMacro]; "MassSelectAgent")
Agent MassSelectAgent (run on all documents in view, "select documents" type):
SELECT @Eval(@Environment("MassSelect"))
The same type of view action could also be implemented in LotusScript of course, allowing you to display a dialogbox with a more user-friendly way of entering selection criteria, and calculate the search expression rather than making the user write macro code. Or if the idea is to select all the documents in one or more categories, you could prompt them to select multiple values out of a list of categories.
Depending what you intend to do with the selected documents, though, it may give better performance as well as a smoother UI to have an integrated function -- an agent that instead of just acting on the selected documents, prompts you with a dialogbox to select the criteria for the documents it is to operate on. You may either enter some search properties, or click a "selected documents" button in the dialog to process the documents already selected in the view. If the latter, it uses UnprocessedDocuments; else it does a full-text or macro search among the documents in the current view (or all documents, if you prefer that).